-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change nodeAffinity to And #1637
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be wrong, but when testing I still see unexpected output in the YAML:
pools:
- affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- kind-worker
- key: kubernetes.io/hostname
operator: In
values:
- kind-worker2
- key: kubernetes.io/hostname
operator: In
values:
- kind-worker3
- key: kubernetes.io/hostname
operator: In
values:
- kind-worker4
Aha, I was missing to change the image in the console deployment, yes this works: pools:
- affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- kind-worker
- kind-worker2
- kind-worker3
- kind-worker4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, it works!
change nodeAffinity to And
merge nodeAffinity
related #1635
How to test this PR:
Change the image in the Deployment of Operator.
Create tenant: